/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.space.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fuyao.cloud.common.core.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 楼层管理
 *
 * @author 时间的朋友
 * @date 2021-11-11 15:30:25
 */
@Data
@TableName("fy_room_storey")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "楼层管理")
public class RoomStorey extends BaseEntity<RoomStorey> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键Id")
    private Long id;

    /**
     * 楼层名称
     */
    @ApiModelProperty(value="楼层名称")
    @TableField(condition = SqlCondition.LIKE)
    private String name;

    /**
     * 楼层编码(自动编码按照对应的楼栋从1开始自动增长)
     */
    @ApiModelProperty(value="楼层编码(自动编码按照对应的楼栋从1开始自动增长)")
    private String code;

    /**
     * 所属楼栋ID
     */
    @TableField(condition = SqlCondition.EQUAL)
    @ApiModelProperty(value="所属楼栋ID")
    private Long edificeId;

    /**
     * 所属楼栋名称
     */
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty(value="所属楼栋名称")
    private String edificeName;

    /**
     * 入住性别(男、女、混合)
     */
    @TableField(condition = SqlCondition.EQUAL)
    @ApiModelProperty(value="入住性别(男、女、混合)")
    private String checkinGender;

    /**
     * 排序号
     */
    @ApiModelProperty(value="排序号")
    private Integer ordernumber;

    /**
     * 备注
     */
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty(value="备注")
    private String remarks;

    /**
     * 数据权限编码，从区域开始一直按着全编码按照表之间的依赖一直延续下去
     */
    @TableField(condition = SqlCondition.LIKE_RIGHT)
    @ApiModelProperty(value="数据权限编码，从区域开始一直按着全编码按照表之间的依赖一直延续下去")
    private String dataCode;

}
